import QtQuick

Window {
    width: 640
    height: 480
    visible: true
    title: qsTr("Rectangle & Column")

    Column{
        anchors.centerIn: parent
        spacing: 20

        Rectangle {
            width:100; height:40
            color: "#41cd52"
        }

        Rectangle {
            width:100; height:40
            border.color : "#006600"
            border.width : 1
            radius : height/2
            color: "#41cd52"
        }

        Rectangle {
            width: 100; height: 40
            radius:5
            gradient: Gradient {
                orientation: Gradient.Horizontal //水平渐变
                GradientStop { position: 0.0; color: "#009bff" }
                GradientStop { position: 1.0; color: "#0afefe" }
            }
        }
    }
}
